package com.tianyi.dao.entity.menu;

import java.io.Serializable;
import java.util.Date;

public class Menu implements Serializable {
    /**
     * id
     * 表字段 ：id
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private Long id;

    /**
     * 创建时间
     * 表字段 ：gmt_create
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private Date gmtCreate;

    /**
     * 修改时间
     * 表字段 ：gmt_modified
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private Date gmtModified;

    /**
     * 菜单名
     * 表字段 ：title
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private String title;

    /**
     * 图标
     * 表字段 ：icon
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private String icon;

    /**
     * 菜单路径
     * 表字段 ：url
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private String url;

    /**
     * 父id
     * 表字段 ：parent_id
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private Long parentId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withId(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withGmtCreate(Date gmtCreate) {
        this.setGmtCreate(gmtCreate);
        return this;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withGmtModified(Date gmtModified) {
        this.setGmtModified(gmtModified);
        return this;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getTitle() {
        return title;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withTitle(String title) {
        this.setTitle(title);
        return this;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getIcon() {
        return icon;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withIcon(String icon) {
        this.setIcon(icon);
        return this;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getUrl() {
        return url;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withUrl(String url) {
        this.setUrl(url);
        return this;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    public Menu withParentId(Long parentId) {
        this.setParentId(parentId);
        return this;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table menu
     *
     * @mbg.generated Wed Jun 24 13:35:14 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", title=").append(title);
        sb.append(", icon=").append(icon);
        sb.append(", url=").append(url);
        sb.append(", parentId=").append(parentId);
        sb.append("]");
        return sb.toString();
    }
}